'use strict'

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = (app) => {
  const { router, controller, middleware } = app
  router.get('/', controller.home.index)

  router.get('/api/login', middleware.auth, controller.login.index)

  router.get('/api/oauth/redirect', controller.login.oAuth)

  router.get('/api/oauth/redirect', controller.login.oAuth)

  router.get('/api/ali-pay', controller.pay.index)
}
